﻿using BenCaoXuan.Infrastructure.Attr;
using BenCaoXuan.Infrastructure.Dto;
using BenCaoXuan.Infrastructure.Dto.Middle.Response.customs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BenCaoXuan.Service.Interface.middle
{
    [Provider_]
    public interface I_MiddleLogin_Service
    {
        /// <summary>
        /// 检查登录
        /// </summary>
        /// <param name="v1"></param>
        /// <param name="v2"></param>
        /// <returns></returns>
        Customs_Dto Check_Middle_Login(string v1, string v2);
        /// <summary>
        /// 初始化员工密码
        /// </summary>
        /// <returns></returns>
        Task<Api_Result_Dto> Init_User();
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Api_Result_Dto> Logins(Login_Dto dto);
        /// <summary>
        /// 退出登录
        /// </summary>
        /// <param name="account">用户账号（手机号）</param>
        /// <returns></returns>
        Task<Api_Result_Dto> Logout(string account);
    }
}
